import { createStore } from "vuex";

let DefaultCity = "北京";
if(localStorage.CityName){
	DefaultCity = localStorage.CityName;
}

export default createStore({
  state: {
	  cityName:DefaultCity
  },
  mutations: {
	  setCity(state,val){
		  state.cityName = val;
		  localStorage.CityName = val;
	  }
  },
  actions: {},
  modules: {},
});
